import { createRouter as _createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import AboutView from "../views/AboutView.vue";
import App from "../App.vue"
import NoPage from "../views/404.vue"
import AboutUsView from "@/views/AboutUsView";
const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'AboutUsView',
    component: AboutUsView
  },
  {
    path: '/App',
    name: 'AppView',
    component: App
  },
  {
    path: '/404',
    name: 'NoPageView',
    component: NoPage
  },
]

export function createRouter() {
  return _createRouter({
    history: createWebHistory(),
    routes
  })
}
// const router = createRouter({
//   history: createWebHistory(),
//   routes
// })

// export default router
